<template>
  <el-config-provider :locale="locale">
      <router-view />
    </el-config-provider>
</template>

<script setup>
import useSettingsStore from '@/store/modules/settings'
import { handleThemeStyle } from '@/utils/theme'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs';
const locale = zhCn;
onMounted(() => {
  nextTick(() => {
    // 初始化主题样式
    handleThemeStyle(useSettingsStore().theme)
  })
})
</script>
